
package com.chengyu.eyc.model;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;

import com.chengyu.eyc.utils.EycGenId;

import tk.mybatis.mapper.annotation.KeySql;

@Table(name = "EYC_LOG")
public class EycLog extends BaseModel implements Serializable {

    private static final long serialVersionUID = 1L;

    @KeySql(genId = EycGenId.class)
    @Id
    @Column(name = "LOG_ID")
    private String logId;

    @Column(name = "PACKAGE_NME")
    private String packageNme;

    @Column(name = "METHOD_NME")
    private String methodNme;

    @Column(name = "LOG_CONTENT")
    private String logContent;

    /**
     * @return LOG_CONTENT
     */
    public String getLogContent() {
        return logContent;
    }

    /**
     * @return LOG_ID
     */
    public String getLogId() {
        return logId;
    }

    /**
     * @return METHOD_NME
     */
    public String getMethodNme() {
        return methodNme;
    }

    /**
     * @return PACKAGE_NME
     */
    public String getPackageNme() {
        return packageNme;
    }

    /**
     * @param logContent
     */
    public void setLogContent(String logContent) {
        this.logContent = logContent == null ? null : logContent.trim();
    }

    /**
     * @param logId
     */
    public void setLogId(String logId) {
        this.logId = logId == null ? null : logId.trim();
    }

    /**
     * @param methodNme
     */
    public void setMethodNme(String methodNme) {
        this.methodNme = methodNme == null ? null : methodNme.trim();
    }

    /**
     * @param packageNme
     */
    public void setPackageNme(String packageNme) {
        this.packageNme = packageNme == null ? null : packageNme.trim();
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", logId=").append(logId);
        sb.append(", packageNme=").append(packageNme);
        sb.append(", methodNme=").append(methodNme);
        sb.append(", logContent=").append(logContent);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }

}